<?php
/**
 * Description of ContentLogout
 *
 * @author Honza
 */
class ContentLogout implements IMainBody {
  public function getContent() {
    $auth = Auth::getInstance();
    $auth->logout();

    //clear navigation
    $pageObject = Page::getInstance();
    $pageObject->clearNav();
    $pageObject->addToNav(Menu::getMenu());

    $p = '';
    $p .= '<h2>Log out</h2>';
    $p .= 'You have been successfuly logged out.';
    return $p;
  }
}

?>
